package cn.wolfcode.shop.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by wolfcode on 2018/8/15.
 */
@Controller
public class MainController {
    @RequestMapping("/main")
    public String mainPage(){
        return "main";
    }
    @RequestMapping("/index")
    public String indexPage(){
        return "index";
    }
    @RequestMapping("/")
    public String appIndex(){
        return "redirect:/main";
    }
}
